# 全局通用配置

class Config(object):
    db_url = "mysql+pymysql://root:123456@127.0.0.1:3306/nebulalog"
    # 前端页面显示条数
    page_count = 10
    # 配置文章图片存放路径
    article_header_image_path = "/images/article/header/"

    email_name = '3035512863@qq.com' # 发送邮箱
    passwd = 'nzdllvfruommddeh'   # 填入发送方邮箱的授权码

#头像路径
    user_header_image_path = "/images/article/header/"
# 测试环境
class TestConfig(Config):
    # db_url = ""
    if_echo = True
    LOG_LEVEL = "DEBUG"

# 开发环境

class ProductionConfig(Config):
    if_echo = False
    LOG_LEVEL = "INFO"

config = {
    'test': TestConfig,
    'production': ProductionConfig,
}

